/**  
*  Doku2Buddy - A DokuWiki to BuddyPress Wiki-Component Converter
*  Copyright (C) 2010 Skye Book
*  
*  This program is free software: you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*  
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*  
*  You should have received a copy of the GNU General Public License
*  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package com.sbook.d2b;

import com.sbook.d2b.gui.StartupGUI;

/**
 * @author Skye Book
 *
 */
public class Doku2BuddyConverter {
	private static boolean usingGUI=false;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		// if no arguments, use display
		if(args.length==0){
			if(System.getProperty("os.name").startsWith("Mac")){
				System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Doku2Buddy Converter");
				System.setProperty("apple.laf.useScreenMenuBar", "true");
			}
			StartupGUI gui = new StartupGUI();
			gui.setVisible(true);
			usingGUI=true;
		}
	}
	
	/**
	 * Tells whether or not the GUI component is being used.
	 * @return true if the GUI is being used or false if it is not.
	 */
	public static boolean isUsingGUI(){
		return usingGUI;
	}
}
